﻿using Microsoft.AspNetCore.Identity;
using System.ComponentModel.DataAnnotations;

namespace Identity.Api.Models
{
    /// <summary>
    /// 用户基础模型
    /// </summary>
    public class ApplicationUser : IdentityUser
    {

        /// <summary>
        /// 租户编号
        /// </summary>
        public string? TenancyName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        //[Required]
        public string? Password { get; set; }

        /// <summary>
        /// 区
        /// </summary>
        public string? Zone { get; set; }

        /// <summary>
        /// 市
        /// </summary>
        public string? City { get; set; }

        /// <summary>
        /// 省
        /// </summary>
        public string? Province { get; set; }

        /// <summary>
        /// 国家
        /// </summary>
        public string? Country { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreationTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 创建者
        /// </summary>
        public int? CreatorUserId { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? LastModificationTime { get; set; }

        /// <summary>
        /// 修改者
        /// </summary>
        public int? LastModifierUserId { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeletionTime { get; set; }

        /// <summary>
        /// 删除者
        /// </summary>
        public int? DeleterUserId { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsActive { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; }

    }
}
